#myapp的urls.py
from django.urls import path
from .views import *
urlpatterns=[
    #定义首页的路由
    path('',myapp,name='myapp'),
    
    #ListView类视图路由
    path('ListView/', LV.as_view(), name='LV'),
    
    #DetailView类视图路由
    path('<pk>/<age>.html', DV.as_view(), name='DV'),
    
    #FormView类视图路由
    path('FormView/', FV.as_view(), name='FV'),
    path('result',result,name='result'),

    #CreateView类视图
    path('CreateView/', CV.as_view(), name='CV'),

    #UpdateView类视图
    path('<pk>.html', UV.as_view(), name='UV'),

    #DeleteView类视图
    path('personinfo/<int:pk>/delete.html', DeV.as_view(), name='DeV'),

    #MonthArchiveView类视图
    path('Month/<int:year>/<int:month>.html', MAV.as_view(), name='MAV'),
    
    #WeekArchiveView类视图
    path('week/<int:year>/<int:week>.html', WAV.as_view(), name='WAV'),
]
